RDKEMW-7489: Adding Href support#54
Merged
Merged
Conversation
Contributor
trupthi1403
commented
Sep 6, 2025
Contributor
madanagopalt
reviewed
Sep 6, 2025
| : rtHttpRequest(url) | ||
| { } | ||
| { | ||
| printf("HTTP OBJECT CREATED \n"); |
Contributor
There was a problem hiding this comment.
please remove this print
madanagopalt
reviewed
Sep 6, 2025
| : rtHttpRequest(options) | ||
| { } | ||
| { | ||
| printf("HTTP OBJECT CREATED 1 \n"); |
madanagopalt
reviewed
Sep 6, 2025
|
|
||
| void onDownloadProgressImpl(double progress) final | ||
| { | ||
| printf("DOWNLOAD COMPLETED ............. \n"); |
madanagopalt
reviewed
Sep 6, 2025
|
|
||
| void onDownloadCompleteImpl(rtFileDownloadRequest* downloadRequest) final | ||
| { | ||
| printf("DOWNLOAD COMPLETED ............. \n"); |
Contributor
madanagopalt
requested changes
Sep 6, 2025
Contributor
madanagopalt
left a comment
There was a problem hiding this comment.
kindly look at comments
| } | ||
|
|
||
| rtObjectRef protectedRef = resp; | ||
| printf("DOWNLOAD COMPLETED ............. \n"); |
| { | ||
| UNUSED_PARAM(context); | ||
|
|
||
| printf("CREATING OBJECT HERE1 ........\n"); |
|
|
||
| rtHttpRequest* req; | ||
| if (args[0].getType() == RT_stringType) { | ||
| printf("CREATING OBJECT HERE ........\n"); |
| return RT_ERROR_INVALID_ARG; | ||
| } | ||
| rtLogInfo("new rtHttpRequest"); | ||
| printf("CREATING OBJECT HERE 2........\n"); |
| this.url.query += utf8PercentEncodeString(this.buffer, queryPercentEncodePredicate); | ||
|
|
||
|
|
||
| // HACK |
Contributor
There was a problem hiding this comment.
Mention as TODO: Check for encryption
| obj[hostHeaderKey] = obj[hostHeaderKey][0]; | ||
| // Convert all header values from arrays to strings for Node.js compatibility | ||
| for (const key in obj) { | ||
| if (Array.isArray(obj[key])) { |
Contributor
Author
There was a problem hiding this comment.
comments addressed
424674e to
7c21f0b
Compare
madanagopalt
reviewed
Sep 6, 2025
|
|
||
| void onDownloadCompleteImpl(rtFileDownloadRequest* downloadRequest) final | ||
| { | ||
| fflush(stdout); |
madanagopalt
reviewed
Sep 6, 2025
| void onDownloadProgressImpl(double progress) final | ||
| { | ||
|
|
||
| fflush(stdout); |
madanagopalt
reviewed
Sep 6, 2025
| : rtHttpRequest(url) | ||
| { } | ||
| { | ||
| fflush(stdout); |
madanagopalt
reviewed
Sep 6, 2025
| { | ||
| if (mExternalApplicationHandler) | ||
| { | ||
| printf("Got exteranl application set [%s] in id [%d] \n", url.c_str(), mIds); |
madanagopalt
reviewed
Sep 6, 2025
| } | ||
|
|
||
| rtObjectRef protectedRef = resp; | ||
| fflush(stdout); |
7c21f0b to
4a135db
Compare
Reason for change: Added Support for Random Num Generator,
Local Storage class,
Updated node-fetch file for header support
Risks: Low
Priority: P1
4a135db to
f09297b
Compare
madanagopalt
approved these changes
Sep 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.